﻿using SD.Infrastructure.DTOBase;
using SlamDunk.MES.IAppService.DTOs.Outputs.ResourceContext;
using SlamDunk.ValueObjects.Enums;
using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Outputs.PlanContext
{
    /// <summary>
    /// 销售订单数据传输对象
    /// </summary>
    [DataContract]
    public class SaleOrderInfo : BaseDTO
    {
        #region 客户Id —— Guid CustomerId
        /// <summary>
        /// 客户Id
        /// </summary>
        [DataMember]
        public Guid CustomerId { get; set; }
        #endregion

        #region 下单日期 —— DateTime IssuedDate
        /// <summary>
        /// 下单日期
        /// </summary>
        [DataMember]
        public DateTime IssuedDate { get; set; }
        #endregion

        #region 交付日期 —— DateTime DeliveryDate
        /// <summary>
        /// 交付日期
        /// </summary>
        [DataMember]
        public DateTime DeliveryDate { get; set; }
        #endregion

        #region 提审人账号 —— string SubmitterAccount
        /// <summary>
        /// 提审人账号
        /// </summary>
        [DataMember]
        public string SubmitterAccount { get; set; }
        #endregion

        #region 提审人姓名 —— string SubmitterName
        /// <summary>
        /// 提审人姓名
        /// </summary>
        [DataMember]
        public string SubmitterName { get; set; }
        #endregion

        #region 审核状态 —— CheckStatus CheckStatus
        /// <summary>
        /// 审核状态
        /// </summary>
        [DataMember]
        public CheckStatus CheckStatus { get; set; }
        #endregion

        #region 审核意见 —— string CheckedRemark
        /// <summary>
        /// 审核意见
        /// </summary>
        [DataMember]
        public string CheckedRemark { get; set; }
        #endregion

        #region 审核人账号 —— string CheckerAccount
        /// <summary>
        /// 审核人账号
        /// </summary>
        [DataMember]
        public string CheckerAccount { get; set; }
        #endregion

        #region 审核人姓名 —— string CheckerName
        /// <summary>
        /// 审核人姓名
        /// </summary>
        [DataMember]
        public string CheckerName { get; set; }
        #endregion

        #region 审核时间 —— DateTime? CheckedTime
        /// <summary>
        /// 审核时间
        /// </summary>
        [DataMember]
        public DateTime? CheckedTime { get; set; }
        #endregion

        #region 创建人账号 —— string CreatorAccount
        /// <summary>
        /// 创建人账号
        /// </summary>
        [DataMember]
        public string CreatorAccount { get; set; }
        #endregion

        #region 创建人姓名 —— string CreatorName
        /// <summary>
        /// 创建人姓名
        /// </summary>
        [DataMember]
        public string CreatorName { get; set; }
        #endregion

        #region 描述 —— string Description
        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        #endregion


        //导航属性

        #region 导航属性 - 客户 —— EnterpriseInfo CustomerInfo
        /// <summary>
        /// 导航属性 - 客户
        /// </summary>
        [DataMember]
        public EnterpriseInfo CustomerInfo { get; set; }
        #endregion
    }
}
